home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17181 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.nyu.edu!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 13 Apr 1996 21:53:58 -0400
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.829446681@schonberg>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.829345962@schonberg> <4knqun$ga1@nntp.Stanford.EDU> <dewar.829399701@schonberg> <4kpceq$e4b@solutions.solon.com>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Peter said:
  13.  
  14. "delete() is not ANSI.  remove() is ANSI.  I have never seen a system that
  15. didn't offer it, since the 3b1.  It's certainly trivial to write.  (A good
  16. patch for portability is to write standard code, and have a set of
  17. conditionally built modules to provide the standard functions in terms
  18. of the not-standard but available on all old systems functions.)"
  19.  
  20. Oops, that's right, it is indeed remove I meant (I don't know it because
  21. I don't use it -- I don't use it because the Microsoft book says it is
  22. not implemented in some systems). On the other hand, that same book says
  23. that unlink is implemented in all systems, so clearly at least for the 
  24. moment unlink is safer to use if you are aiming at maximum portability.
  25. Rememerb that gcc is targeted to more than 300 different C library
  26. environments, and you want to absolutely minimize conditional stuff.
  27. That's what I meant by having a strenuous view of portability. I would
  28. rather guess that Peter is pretty Unix oriented, and of course we are
  29. trying for a wider scope of portability than Unix!
  30.  
  31.